package com.lsp.server.user.service;

import com.lsp.server.user.domain.po.Org;
import com.lsp.server.user.mapper.OrgMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName OrgService
 * @Description 域名管理业务层
 * @Author Mr Hao
 * @Date 2021/12/6 11:11
 */
@Service
public class OrgService {

    @Autowired
    private OrgMapper orgMapper;

    public List<Org> queryOrgList() {
        return orgMapper.queryOrgList();
    }

    public void addOrg(Org org) {
        orgMapper.addOrg(org);
    }

    public List<Org> queryList(){
        return orgMapper.queryList();
    }

    public void updateIp(Integer id, Integer status) {
        orgMapper.updateIp(id,status);
    }

    public List<Org> queryUseData() {
        return orgMapper.queryUseData();
    }
}
